#ifndef HW_H
#define HW_H


#include <QWidget>
#include <QMessageBox>
#include <QTimer>
#include <QDateTime>

#include "common_ui.h"


#include "readywork.h"
#include "drawwave.h"
#include "aboutme.h"


namespace Ui {
    class hw;
}

class hw : public QWidget
{
    Q_OBJECT

public:
    explicit hw(QWidget *parent = 0);
    ~hw();
#if BOARD
    static int callback(void *device,CALLBACK_MSG msg);
#endif
    Ui::hw *ui;

private:

    ReadyWork *readywork;
    AboutME *aboutme;
    QTimer *clkTimer;

private slots:
    void on_btnFunc_Log_clicked();
    void on_btnFunc_Aboutme_clicked();
    void on_btnFunc_Setting_clicked();
    void on_btnFunc_Light3_clicked();
    void on_btnFunc_Light2_clicked();
    void on_btnFunc_Light1_clicked();
    void on_btnFunc_Fan_clicked();
    void on_btnWork_clicked();

    void StartWork(float temper,float humi,U64 worktime);

    void SystemClkUpdate();
};

#endif // HW_H
